#!/usr/bin/env.python
# _*_ coding:utf-8 _*_
# # # # # # # # # # # # # # # # # # # #
#  题目:      pagination全局分页类      #
#  姓名:         李吉辉                #
#  时间:   2018年12月29日00:27:43      #
# # # # # # # # # # # # # # # # # # # #


# Create your views here.
from rest_framework.pagination import PageNumberPagination


class StandardResultsSetPagination(PageNumberPagination):
    """分页后端"""
    page_size = 2  # 默认每页有多少条
    page_size_query_param = 'page_size'   #  控制每页有多少条
    max_page_size = 20  # 最多为20页